package com.wedo.mall.adapter;

import android.content.Context;
import android.widget.TextView;

import com.e.library.adapter.Adapter;
import com.wedo.mall.R;
import com.wedo.mall.entity.History;

import java.util.List;

/**
 * Created by lxy on 2017/6/20.
 */

public class HistoryAdapter extends Adapter<History> {

    public HistoryAdapter(Context context, List<History> datas) {
        super(context, datas);
    }

    @Override
    protected int layout() {
        return R.layout.item_history;
    }

    @Override
    protected void bind(EHolder holder, History history, int position) {
        TextView tv_name = holder.find(R.id.tv_name);
        tv_name.setText(history.keyword);
    }
}
